<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Binh
 * Date: 1/7/14
 * Time: 12:19 AM
 * To change this template use File | Settings | File Templates.
 */
?>
<div style="float: left; margin: 20px;"
    <h2 style="font-size: 15px !important;"> Tải bài hát mới </h2>

    <!-- Mo form upload -->
    <?php echo Form::open('update/update_song');?>

        <span class="normalText">Chọn bài hát tải lên:</span>
        <input type="file" name="path_file" size="20" />
        <br />

        <span class="normalText">Tên bài hát:</span>
        <input type="text" name="song_name"  placeholder="Bắt buộc"/>
        <br />

        <span class="normalText">Tên ca sĩ:</span>
        <input type="text" name="singer_name" placeholder="Bắt buộc"/>
        <br />
        <span class="normalText">Tên nhạc sĩ:</span>
        <input type="text" name="author_name" />
        <br />
        <span class="normalText">Tên thể loại:</span>
        <select name = "genre">
            <?php
            foreach($genres as $genre){
            ?>
                <option value="<?php echo $genre['GENRE_ID'];?>"><?php echo $genre['GENRE_NAME'];?></option>
            <?php
            }
            ?>
        </select>
        <br />
        <input type="submit" name="upload" value="<?php echo "Upload";?>" />

    </form>
    <h1 style="color:red;"><?php echo $error; ?></h1>
</div>